js报错

net::ERR_INCOMPLETE_CHUNKED_ENCODING

nginx的error log


2016/06/05 20:49:17 [xxx] 22239#0: *29366 open() "/usr/local/openresty/nginx/proxy_temp/0/15/0000000150" failed (13: Permission denied) while reading upstream..."

查看proxy_temp权限


drwxr-xr-x 12 nobody root 4096 Feb 17 02:53 proxy_temp

drwxr-xr-x  2 root   root 4096 Feb 17 02:40 sbin

drwx------  2 nobody root 4096 Feb 17 02:53 scgi_temp

drwx------  2 nobody root 4096 Feb 17 02:53 uwsgi_temp

查看nginx启动用户

直接查nginx.conf

或者

ps aux | grep "nginx: worker process" | awk '{print $1}'

更改

chown -R nobody:nobody proxy_temp/

参考


codecraft
11.9k 声望2k 粉丝

当一个代码的工匠回首往事时,不因虚度年华而悔恨,也不因碌碌无为而羞愧,这样,当他老的时候,可以很自豪告诉世人,我曾经将代码注入生命去打造互联网的浪潮之巅,那是个很疯狂的时代,我在一波波的浪潮上留下...